﻿@model Chapter3Applications.Models.PersistentModel.Product

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EnterProduct</title>
</head>
<body>
    <div>     
            @if (TempData["productName"] != null)
            {
             <p>Product @TempData["productName"] Entered</p>
            }
    </div>
    <div>
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary()
            <p>Product to enter: @Html.TextBoxFor(x => x.ProductName)</p>
            <input type="submit" value="Enter Product">
        }
    </div>    
</body>
</html>